package com.alex.space.commons.thread;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author Alex
 * Created by Alex on 2018/2/5.
 */
public class TagsCallable implements Callable<List> {

    private String id;

    TagsCallable(String id) {
        this.id = id;
    }

    public List call() throws Exception {
        System.out.println("call " + id);
        if (Integer.valueOf(id) % 10 == 0) {
            throw new RuntimeException();
        }

        Thread.sleep(500);

        return new ArrayList();
    }

}
